package ylg.cn.com.shenshen.web;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import ylg.cn.com.shenshen.R;

/**
 * Created by Administrator on 2017/11/27.
 */

public class WebViewActivity extends Activity {

    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_webview);
        webView = (WebView) findViewById(R.id.webView);
       webView.setWebViewClient(new WebViewClient());
       WebSettings webSettings = webView.getSettings();
       webSettings.setJavaScriptEnabled(true);
       webView.loadUrl("https://www.baidu.com/index.php?tn=monline_3_dg");
    }
}
